package com.server.crypto.digest;


/**
 * <li>Description: 摘要算法类型<br>
 *  * see: https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#MessageDigest </li>
 * <li>@author: XiaJunJian </li>
 * <li>@date: 2020-06-12 17:38:42</li>
 */
public enum DigestAlgorithm {
	/**
	 * MD
	 */
	MD2("MD2"),
	/**
	 * Md 5 digest algorithm.
	 */
	MD5("MD5"),
	/**
	 * SHA
	 */
	SHA1("SHA-1"),
	/**
	 * Sha 256 digest algorithm.
	 */
	SHA256("SHA-256"),
	/**
	 * Sha 384 digest algorithm.
	 */
	SHA384("SHA-384"),
	/**
	 * Sha 512 digest algorithm.
	 */
	SHA512("SHA-512");

	private String value;

	private DigestAlgorithm(String value) {
		this.value = value;
	}

	/**
	 * Gets value.
	 *
	 * @return the value
	 */
	public String getValue() {
		return this.value;
	}
}